﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MySoftLab.DapFlashCore.Targets
{
    public class CommonTarget : TargetBase
    {
        private MemoryMap _memoryMap = new MemoryMap();
        public override MemoryMap MemoryMap => _memoryMap;

        private FlashAlgo _flashAlgo = new FlashAlgo();
        public override FlashAlgo FlashAlgo => _flashAlgo;

        private string _name;
        public override string Name => _name;

        public CommonTarget(string name, MemoryMap memoryMap, FlashAlgo flashAlgo)
        {
            _name = name;
            _memoryMap = memoryMap;
            _flashAlgo = flashAlgo;
        }
    }
}
